home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Light ROM 1
/
LIGHT-ROM 1 (Amiga Library Services)(1994).iso
/
ffdisks
/
d909.lha
/
GoldED2
/
Tools
/
HiSpeed
/
ARexxEDoc
< prev
next >
Wrap
Text File
|
1993-08-28
|
8KB
|
145 lines
This text does describe HiSpeed's ARexx commands. Usually, you can
operate the program from WB & ARexx simultanously. However, if you
use the '-hide' option, HiSpeed won't open its window but stay in the
background and wait for ARexx messages (there is only one way to get
rid of HiSpeed if it hides in the background: send an ARexx 'QUIT'
command). The ARexx commands of HiSpeed fall into three groups:
- functions to read variables/settings (Type QUERY)
- functions to set these variables (Type SET)
- and finally subroutine calls
A) AREXX
You can access the ARexx port of HiSpeed either directly from
the shell (e.g. RX "ADDRESS HISPEED QUIT") or from any ARexx
script file - some examples:
1. /* all ARexx scripts begin with a comment */
address HISPEED /* talk to Hispeed */
'REQUESTFILE' /* ask for a file */
'SET QUALITY HISPEED' /* switch to hispeed mode */
'SET DOUBLE' /* order double sided printing */
'SET HEADER ON' /* ask for page headers */
'PRINT' /* ... and start printing */
2. /* ask for current font */
address HISPEED /* talk to HiSpeed */
options results /* we want results ... */
'QUERY QUALITY' /* query font */
say RESULT /* show result */
B) AREXX commands
Group 1 - set variables (SET); Syntax: SET <variable> <value>
SET LAYOUTX <columns>....................... set columns
SET LAYOUTY <rows>.......................... set rows
SET LEFT <mm>............................... left border
SET RIGHT <mm>.............................. right border
SET TOP <mm>................................ top border
SET BOTTOM <mm>............................. bottom border
SET DX <mm>................................. space between columns
SET DY <mm>................................. space between rows
SET COPIES <number>......................... copies (max. 99)
SET FEED <0|1|2|3|4|5|6|7>.................. linefeed
SET PORT <'PAR:'|'SER:'|FILE>............... output port
SET OUTFILE '<full path>'................... output file
SET QUALITY <HISPEED|LQ|EDV|BOLD|BOLDEDV>... style
SET FILE '<full path>' ..................... add file to list
SET PERFORMESC [ON]|OFF] ................... perform ESC codes ?
SET PERFORMFF [ON|OFF] ..................... perform FF codes ?
SET NUMBER [ON|OFF] ........................ number lines ?
SET HEADER [OFF|NOHEADER|ON|INDEX] ......... header type
SET SIZE <Fontname> ........................ font
SET DOUBLE [ON|OFF] ........................ double sided ?
SET SINGLE [ON|OFF] ........................ dito.
SET SEPARATE [ON|OFF] ...................... draw lines ?
SET ADJUSTLF [ON|OFF] ...................... ignore LF ?
SET KEEPLF [ON|OFF] ........................ perform LF ?
SET REQUESTER [ON|OFF] ..................... no requesters ? (1)
SET ASK '<Text>' ........................... show YES/NO requester
SET WARN '<Text>' .......................... show I SEE requester
SET BOOK [ON|OFF] .......................... toggle book mode
SET COVER <coverfile> ...................... print a cover
SET KEYLIST <file> ......................... keyword file (*)
SET KEYCODE <character|OFF> ................ set keyword qualifier
SET PAPERX ................................. set paper width
SET PAPERY ................................. set paper height
SET PERFORATE [ON|OFF] ..................... prepare perforation ?
SET ORIENTATION <PORTRAIT|LANDSCAPE> ....... paper orientation
SET MSDOS [ON|OFF] ......................... toggle MS-DOS mode
SET UNIDIR [ON|OFF] ........................ uni/bidirectional
SET SCREEN <PubScreenName> ................. select a screen
Group 2 - subroutines
QUIT ....................................... quit HiSpeed
SLEEP ...................................... iconify
HIDE ....................................... hide in the background
OPENWIN .................................... open main window
SORTNAME ................................... sort jobs by name
SORTSIZE ................................... sort jobs by size
NEW ........................................ clear job list
CLR ........................................ dito.
REQUESTFILE ................................ ask for files
PRINT ...................................... print jobs
SCAN ....................................... scan jobs
VSCAN ...................................... dito. (visualize)
RESET ...................................... get default settings
INFO ....................................... show scan results
SAVECONFIG ................................. save settings
Group 3 - read variables (QUERY)
Syntax: QUERY <variable> [<qualifier>] (result is placed in RESULT)
QUERY LAYOUTX .............................. layout (columns)
QUERY LAYOUTY .............................. layout (rows)
QUERY LEFT ................................. left border
QUERY RIGHT ................................ right border
QUERY TOP .................................. top border
QUERY BOTTOM ............................... bottom border
QUERY DX ................................... space between columns
QUERY DY ................................... space between rows
QUERY COPIES ............................... number of copies
QUERY FEED ................................. linefeed
QUERY PORT ................................. port
QUERY OUTFILE .............................. output file (port=FILE)
QUERY QUALITY .............................. style of printing
QUERY PERFORMESC ........................... perform ESC codes ?
QUERY PERFORMFF ............................ perfrom FF codes ?
QUERY NUMBER ............................... number lines ?
QUERY HEADER ............................... header type
QUERY SIZE ................................. font
QUERY DOUBLE ............................... printing mode
QUERY SINGLE ............................... dito.
QUERY SEPARATE ............................. draw lines ?
QUERY ADJUSTLF ............................. adjust-LF setting
QUERY KEEPLF ............................... dito.
QUERY BLOCKX ............................... characters/line
QUERY BLOCKY ............................... lines/block
QUERY PAGES ................................ required pages (*)
QUERY SHEETS ............................... required sheets (*)
QUERY DISTORTIONS .......................... get distortions (*)
QUERY BYTES ................................ output size [bytes]
QUERY JOBS ................................. # of files to print
QUERY VERSION .............................. get version string
QUERY JOBNAME <slot> ....................... get a job's name
QUERY STATE ................................ read HiSpeed's state
QUERY JOBPAGE <slot> ....................... get job's page (*)
QUERY BOOK ................................. book mode set ?
QUERY MAXLINE .............................. longest line (*)
QUERY KEYCODE .............................. keyword qualifier
QUERY PERFORATE ............................ border handling
QUERY ORIENTATION .......................... paper orientation
QUERY MSDOS ................................ MS-DOS mode ?
QUERY UNIDIR ............................... uni/bidirectional ?
(1) valid only for ARexx scripts (doesn't affect behaviour if
operated from the workbench)
(*) these variables become valid after a SCAN (or VSCAN)